package com.gy.dalian.service;

import com.gy.dalian.mapper.DldpTableMapper;
import com.gy.dalian.model.DldpTable;
import lombok.RequiredArgsConstructor;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.LinkedHashMap;
import java.util.List;

/**
 * @author:23562
 * @date:2023/3/20
 */
@Service("DldpTableService")
@RequiredArgsConstructor
public class DldpTableService {
    private final DldpTableMapper dldpTableMapper;

    public List<DldpTable> queryInfo(DldpTable dldpTable) {
        return dldpTableMapper.queryInfo(dldpTable);
    }

    public List<LinkedHashMap<String, Object>> queryInfoBySql(@Param("sql") String sql) {
        return dldpTableMapper.queryInfoBySql(sql);
    }

    public int updateBySql(@Param("sql") String sql) {
        return dldpTableMapper.updateBySql(sql);
    }
}
